 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.Valid;
 import java.io.Serializable;
 import java.util.List;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class DocListModel implements Serializable {

     @Valid
	 private List<DocModel> doc;

     public List<DocModel> getDoc() {
         return doc;
     }

     public void setDoc(List<DocModel> doc) {
         this.doc = doc;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o){
             return true;
         }

         if (o == null || getClass() != o.getClass()){
             return false;
         }

         DocListModel that = (DocListModel) o;

         return new EqualsBuilder()
                 .append(doc, that.doc)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(doc)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "DocListModel{" +
                 "doc=" + doc +
                 '}';
     }
 }
